import { axios } from "../../utils/request";

const api = {
    list: "/work/approval/page",
    save: "/work/approval/save"
};

/**
 * 列表
 */
export function pageList(parameter) {
  return axios({
    url: api.list,
    method: "get",
    params: parameter
  });
}

/**
 * 保存
 */
export function save(parameter) {
  return axios({
    url: api.save,
    method: "post",
    data: parameter,
    headers: {
		  "Content-Type": "multipart/form-data"
	  },
    timeout: 60000  //60秒
  });
}